package com.matrix.gallery.ui.wallpaper.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.module.LoadMoreModule
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.matrix.basecore.utils.glide.GlideUtil
import com.matrix.gallery.R
import com.matrix.gallery.ui.wallpaper.bean.PhoneBean

class RVGalleryAdapter(layoutResId: Int, dates: MutableList<PhoneBean.Vertical>) : BaseQuickAdapter<PhoneBean.Vertical, BaseViewHolder>(
        layoutResId, dates
    ), LoadMoreModule {

    override fun convert(holder: BaseViewHolder, item: PhoneBean.Vertical) {
        GlideUtil.loadRoundImage(
            item?.thumb,
            context,
            holder.getView(R.id.iv_image),
            6,
            R.mipmap.icon_default_bg
        )
    }
}